﻿using System;

namespace Framework.Metadata
{
    public class TypeMetadata
    {
        public static TypeMetadata FromType(Type type)
        {
            var tableName = new NamingConventionConverter().ConvertName(type.Name);
            return new TypeMetadata {TableName = tableName};
        }

        public string TableName { get; set; }
    }
}